package com.example.springboot010exceptionhandler.domain;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/7/8 上午 10:50
 * @version: v1.0
 */
@Data
public class User {
    @NotNull(message = "主键不能为空")
    private Integer id;
    @Range(min = 1, max = 10, message = "数量要求在{min}-{max}")
    private Integer no ;
}
